import request from '@/utils/request'

const censorApi = {
    /**
     * 审查配置详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/setting/censor/detail'
        })
    },

    /**
     * 审查配置保存
     */
    save(params: {
        channel: string;
        review_question: boolean;
        review_draws: boolean;
        review_video: boolean;
        review_music: boolean;
        review_users: boolean;
        review_texts: boolean;
        review_image: boolean;
        baidu_app_id: string;
        baidu_api_key: string;
        baidu_secret_key: string;
        aliyun_api_key: string;
        aliyun_secret_key: string;
    }): Promise<any> {
        return request.post({
            url: '/setting/censor/save',
            params
        })
    }
}

export default censorApi
